#ifndef INC_CPU_AFFINITY_H
#define INC_CPU_AFFINITY_H

#include <stdint.h>

typedef struct {
    uint64_t mask;
} cpu_affinity_t;

void init_affinity(cpu_affinity_t *aff);
void set_affinity(cpu_affinity_t *aff, uint64_t mask);
int test_affinity(cpu_affinity_t *aff);

#endif